using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace CHEnhanceEfCore.Models
{
    /// <summary>
    /// 角色和菜单关联表
    /// author: chenhao
    /// </summary>
    [Table("role_menu")]
    public class RoleMenu  : BaseModel
    {
        /// <summary>
        /// 自增编号
        /// </summary>
        [Key]
        [Column("id")]
        public Guid id { get; set; }

        /// <summary>
        /// 角色ID
        /// </summary>
        [Column("role_id")]
        public Guid role_id { get; set; }

        /// <summary>
        /// 菜单ID
        /// </summary>
        [Column("menu_id")]
        public Guid menu_id { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        [Column("deleted")]
        public bool deleted { get; set; }
    }
}